package com.panels;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;

import com.utils.ResourcesLoader;

public class EastPanel extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 512708844947260768L;
	private JButton previousPageButton;
	public EastPanel()
	{
		previousPageButton=new JButton();
		previousPageButton.addActionListener(new ActionListener(){

			public void actionPerformed(ActionEvent e) {
				MainPanel.getMainPanel().getPagesPanel().displayPreviousPage();
				
			}});
		initGui();
	}

	private void initGui() {
		ImageIcon imageIcon=ResourcesLoader.getImageIcon("/com/data/images/r_arrow.gif");
		previousPageButton.setIcon(imageIcon);
		previousPageButton.setBorder(null);
		BorderLayout borderLayout= new BorderLayout();
		this.setLayout(borderLayout );
		this.add(previousPageButton);
		

	}
}
